function plotData(X, y)
    %   Open a new figure window
    figure;
    %   Keep the previous plot visible
    hold on;
    %   Find the positive position of the data
    positivePosition = find(y == 1);
    %   Find the negative position of the data
    negativePosition = find(y == 0);
    %   Plot the positive data
    %   Options: 'k' --- Black
    plot(X(positivePosition, 1), X(positivePosition, 2), 'k+', 'LineWidth', 2, 'MarkerSize', 7);
    %   Plot the negative data
    %   Options: 'MarkerFaceColor' --- The color to fill in the marker
    plot(X(negativePosition, 1), X(negativePosition, 2), 'ko', 'MarkerFaceColor', 'y', 'MarkerSize', 7);
    %   Don't overlay any more plots on this figure
    hold off;
end
